//package com.woniu.aimd.config.ai.tools;
//
//import cn.dev33.satoken.context.SaHolder;
//import cn.dev33.satoken.interceptor.SaInterceptor;
//import cn.dev33.satoken.stp.StpUtil;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//// 注册拦截器
//@Configuration
//public class SaTokenConfigure implements WebMvcConfigurer {
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        System.out.println("--------- flag 1");
//        registry.addInterceptor(new SaInterceptor())
//        .addPathPatterns("/**")
//        .excludePathPatterns("/user/login");
//    }
//}
